import { Component,OnInit,Input } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-comp-goods',
  templateUrl: './comp-goods.component.html',
  styleUrls: ['./comp-goods.component.scss']
})
export class CompGoodsComponent {
 @Input() goods:any = null
 constructor(private router:Router){}
 goDetail(){
  this.router.navigate(["/mobile-cooking/detail",{
    id:this.goods.id
  }])
 }
}
